package dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import po.User;

public interface UserDao {
	public List<User> getchefList();
	/**
	 * 通过账号和密码查询用户
	 */
	
	public User findUser(@Param("username") String username,
			                @Param("password") String password);
	public User findAdmin(@Param("username") String username,
            @Param("password") String password);
	public int addUser(User user);
	public int updateUser(User user);
	public int deleteUser(int id);
}
